package com.tjetc.controller;

import com.tjetc.utils.AiUtils;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
@CrossOrigin
@RestController
@RequestMapping("/test")
public class TestController {
    @RequestMapping("/a")
    public void a(@RequestParam("message") String  message) throws Exception {
        String chat = AiUtils.chat(message);
        System.out.println("chat = " + chat);
    }

}
